<p><a href="<?=$this->url(array('module' => 'backend', 'controller' => 'themes', 'action' => 'addlayout'), 'layout_add', true)?>"><?=$this->translate->_('admin_layouts_add')?></a></p>

<?if($this->count > 0):?>
	<table summary="layouts" class="table_posts">
	<tr>
		<th width="16px"></th>
		<th><?=$this->translate->_('admin_layouts_title')?></th>
		<th><?=$this->translate->_('admin_layouts_key')?></th>
		<th width="40px"></th>
	</tr>
	<?foreach($this->results AS $result):?>
	<tr>
		<td>
			<?if($result['is_public'] == 1):?>
				<img src="<?=$this->baseUrl()?>/static/gfx/icons/tick.png" alt="public" />
			<?else:?>
				<img src="<?=$this->baseUrl()?>/static/gfx/icons/cross.png" alt="not public" />
			<?endif;?>
		</td>
		<td><?=$result['title']?></td>
		<td><?=$result['key']?></td>
		<td>
			<a href="<?=$this->url(array('module' => 'backend', 'controller' => 'themes', 'action' => 'edit', 'uid' => $result['uid']), 'layout_edit', true);?>"><img src="<?=$this->baseUrl()?>/static/gfx/icons/pencil.png" alt="Edit" /></a>
			<?if($result['key'] != 'default'):?>
				<a href="<?=$this->url(array('module' => 'backend', 'controller' => 'themes', 'action' => 'delete', 'uid' => $result['uid']), 'layout_delete', true)?>"><img alt="Delete" title="Delete" src="<?=$this->baseUrl()?>/static/gfx/icons/bin.png" /></a>
			<?endif;?>
		</td>
	</tr>
	<?endforeach;?>
	</table>
<?else:?>
	<p class="notice_bad"><?=$this->translate->_('admin_layouts_error')?></p>
<?endif;?>